We can use variables to keep track of how many times the left and down arrow keys are pressed when setting up the shot.

  • Use Integer Variable to create an variable named left_count with a value of 0.
  • Use another Integer Variable to create a variable named down_count with a value of 0.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)